package cn.hiapi.shopkeeper.jpa.activity;

import cn.hiapi.basic.jpa.BasicRepository;
import cn.hiapi.shopkeeper.entity.activity.ActivityCard;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import java.math.BigDecimal;

/**
 * @author AdinZ
 * @date 2023/1/1 22:29
 */
public interface ActivityCardJpa extends BasicRepository<ActivityCard,Long> {

    @Modifying
    @Query("delete from ActivityCard e where e.aid=?1")
    Integer deleteByAid(long aid);
}
